package com.statistics.cloudpower.entity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author MeowParse
 * @date 2017/9/1.
 */
@Entity
@Table(name = "tbl_environmental_tower_statistics_day")
public class TblEnvironmentTowerStatisticsDay {

	private Integer id;
	private String mac;
	private Integer offset;
	private BigDecimal maxPm25;
	private BigDecimal maxTemperature;
	private BigDecimal maxHumidity;
	private BigDecimal maxCo2;
	private BigDecimal maxNoise;
	private BigDecimal maxWindSpeed;
	private BigDecimal maxPressure;
	private BigDecimal maxRainfall;

	private BigDecimal avgPm25;
	private BigDecimal avgTemperature;
	private BigDecimal avgHumidity;
	private BigDecimal avgCo2;
	private BigDecimal avgNoise;
	private BigDecimal avgWindSpeed;
	private BigDecimal avgPressure;
	private BigDecimal avgRainfall;

	private Timestamp statisticsTime;

	public TblEnvironmentTowerStatisticsDay(){

	}

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id")
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Basic
	@Column(name = "mac")
	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}
	@Basic
	@Column(name = "offset")
	public int getOffset() {
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	@Basic
	@Column(name = "max_pm25")
	public BigDecimal getMaxPm25() {
		return maxPm25;
	}

	public void setMaxPm25(BigDecimal maxPm25) {
		this.maxPm25 = maxPm25;
	}

	@Basic
	@Column(name = "max_temperature")
	public BigDecimal getMaxTemperature() {
		return maxTemperature;
	}

	public void setMaxTemperature(BigDecimal maxTemperature) {
		this.maxTemperature = maxTemperature;
	}

	@Basic
	@Column(name = "max_humidity")
	public BigDecimal getMaxHumidity() {
		return maxHumidity;
	}

	public void setMaxHumidity(BigDecimal maxHumidity) {
		this.maxHumidity = maxHumidity;
	}

	@Basic
	@Column(name = "max_co2")
	public BigDecimal getMaxCo2() {
		return maxCo2;
	}

	public void setMaxCo2(BigDecimal maxCo2) {
		this.maxCo2 = maxCo2;
	}

	@Basic
	@Column(name = "max_noise")
	public BigDecimal getMaxNoise() {
		return maxNoise;
	}

	public void setMaxNoise(BigDecimal maxNoise) {
		this.maxNoise = maxNoise;
	}

	@Basic
	@Column(name = "avg_pm25")
	public BigDecimal getAvgPm25() {
		return avgPm25;
	}

	public void setAvgPm25(BigDecimal avgPm25) {
		this.avgPm25 = avgPm25;
	}

	@Basic
	@Column(name = "avg_temperature")
	public BigDecimal getAvgTemperature() {
		return avgTemperature;
	}

	public void setAvgTemperature(BigDecimal avgTemperature) {
		this.avgTemperature = avgTemperature;
	}

	@Basic
	@Column(name = "avg_humidity")
	public BigDecimal getAvgHumidity() {
		return avgHumidity;
	}

	public void setAvgHumidity(BigDecimal avgHumidity) {
		this.avgHumidity = avgHumidity;
	}

	@Basic
	@Column(name = "avg_co2")
	public BigDecimal getAvgCo2() {
		return avgCo2;
	}

	public void setAvgCo2(BigDecimal avgCo2) {
		this.avgCo2 = avgCo2;
	}

	@Basic
	@Column(name = "avg_noise")
	public BigDecimal getAvgNoise() {
		return avgNoise;
	}

	public void setAvgNoise(BigDecimal avgNoise) {
		this.avgNoise = avgNoise;
	}

	@Basic
	@Column(name = "statistics_time")
	public Timestamp getStatisticsTime() {
		return statisticsTime;
	}

	public void setStatisticsTime(Timestamp statisticsTime) {
		this.statisticsTime = statisticsTime;
	}

	@Basic
	@Column(name = "max_wind_speed")
	public BigDecimal getMaxWindSpeed() {
		return maxWindSpeed;
	}

	public void setMaxWindSpeed(BigDecimal maxWindSpeed) {
		this.maxWindSpeed = maxWindSpeed;
	}

	@Basic
	@Column(name = "max_pressure")
	public BigDecimal getMaxPressure() {
		return maxPressure;
	}

	public void setMaxPressure(BigDecimal maxPressure) {
		this.maxPressure = maxPressure;
	}

	@Basic
	@Column(name = "max_rainfall")
	public BigDecimal getMaxRainfall() {
		return maxRainfall;
	}

	public void setMaxRainfall(BigDecimal maxRainfall) {
		this.maxRainfall = maxRainfall;
	}

	@Basic
	@Column(name = "avg_wind_speed")
	public BigDecimal getAvgWindSpeed() {
		return avgWindSpeed;
	}

	public void setAvgWindSpeed(BigDecimal avgWindSpeed) {
		this.avgWindSpeed = avgWindSpeed;
	}

	@Basic
	@Column(name = "avg_pressure")
	public BigDecimal getAvgPressure() {
		return avgPressure;
	}

	public void setAvgPressure(BigDecimal avgPressure) {
		this.avgPressure = avgPressure;
	}

	@Basic
	@Column(name = "avg_rainfall")
	public BigDecimal getAvgRainfall() {
		return avgRainfall;
	}

	public void setAvgRainfall(BigDecimal avgRainfall) {
		this.avgRainfall = avgRainfall;
	}
}
